package com.xsomnus.open.im.authv3.client.handler;

import com.xsomnus.open.im.protocol.response.MessageResponsePacket;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

import java.util.Date;

/**
 * @author @xsomnus666_xiawenye★
 * @since 2019/4/25 0025 15:42
 * 当你发现自己的才华撑不起野心时，就请安静下来学习吧
 */
public class MessageResponseHandler extends SimpleChannelInboundHandler<MessageResponsePacket> {

    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MessageResponsePacket msg) throws Exception {
        System.out.println(new Date() + ": 收到服务端的消息: " + msg.getMessage());
    }
}
